先到 git clone devstack
git clone https://git.openstack.org/openstack-dev/devstack.git devstack
建立一個名為 stack 的使用者
sudo ./devstack/tools/create-stack-user.sh
切換使用者到 stack
sudo su - stack
clone devstack
git clone https://git.openstack.org/openstack-dev/devstack.git devstack
將資料夾切換到 devstack 中
cd devstack
新增 devstack 安裝配置檔案
vim local.conf
[[local|localrc]]
# Credentials
ADMIN_PASSWORD=password
DATABASE_PASSWORD=password
RABBIT_PASSWORD=password
SERVICE_PASSWORD=password
SERVICE_TOKEN=password
SWIFT_HASH=password
SWIFT_TEMPURL_KEY=password
# Enable Ironic plugin
enable_plugin ironic git://git.openstack.org/openstack/ironic
# Enable Neutron which is required by Ironic and disable nova-network.
enable_service n-net
enable_service n-novnc
enable_service q-svc
enable_service q-agt
enable_service q-dhcp
enable_service q-l3
enable_service q-meta
enable_service neutron
# Enable Swift for agent_* drivers
enable_service s-proxy
enable_service s-object
enable_service s-container
enable_service s-account
# Enable Horizon
enable_service horizon
# Disable Heat
disable_service heat h-api h-api-cfn h-api-cw h-eng
# Disable Cinder
disable_service cinder c-sch c-api c-vol
# Swift temp URL's are required for agent_* drivers.
SWIFT_ENABLE_TEMPURLS=True
# By default, DevStack creates a 10.0.0.0/24 network for instances.
# If this overlaps with the hosts network, you may adjust with the
# following.
NETWORK_GATEWAY=10.1.0.1
FIXED_RANGE=10.1.0.0/24
FIXED_NETWORK_SIZE=256
# Log all output to files
LOGFILE=$HOME/devstack.log
LOGDIR=$HOME/logs
啟動 ./stack.sh
./stack.sh
完成後在瀏覽器中輸入,即可看到 dashboard
https://{yourip}/dashboard
帳號:admin 密碼:password